<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>

    </style>
</head>
<body>
<div id="box">我是一条广告,<span id="con">5</span>秒后关闭</div>
    <script>
        
        // 广告窗口自动关闭, 倒计时5秒后关闭窗口 (分别使用定时器和延时器)
        

        
    </script>
</body>
</html>